package com.bsoft.gol.hcs.common.entity;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "fus_contacts", catalog = "")
public class FusContacts {
    private long fusContactsId;
    private long fusMedicalRecordsId;
    private String contactsRelationship;
    private String contactsTelephone;
    private String contactsName;

    @Id
    @Column(name = "fus_contacts_id")
    public long getFusContactsId() {
        return fusContactsId;
    }

    public void setFusContactsId(long fusContactsId) {
        this.fusContactsId = fusContactsId;
    }

    @Basic
    @Column(name = "fus_medical_records_id")
    public long getFusMedicalRecordsId() {
        return fusMedicalRecordsId;
    }

    public void setFusMedicalRecordsId(long fusMedicalRecordsId) {
        this.fusMedicalRecordsId = fusMedicalRecordsId;
    }

    @Basic
    @Column(name = "contacts_relationship")
    public String getContactsRelationship() {
        return contactsRelationship;
    }

    public void setContactsRelationship(String contactsRelationship) {
        this.contactsRelationship = contactsRelationship;
    }

    @Basic
    @Column(name = "contacts_telephone")
    public String getContactsTelephone() {
        return contactsTelephone;
    }

    public void setContactsTelephone(String contactsTelephone) {
        this.contactsTelephone = contactsTelephone;
    }

    @Basic
    @Column(name = "contacts_name")
    public String getContactsName() {
        return contactsName;
    }

    public void setContactsName(String contactsName) {
        this.contactsName = contactsName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        FusContacts that = (FusContacts) o;
        return fusContactsId == that.fusContactsId &&
                fusMedicalRecordsId == that.fusMedicalRecordsId &&
                Objects.equals(contactsRelationship, that.contactsRelationship) &&
                Objects.equals(contactsTelephone, that.contactsTelephone) &&
                Objects.equals(contactsName, that.contactsName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(fusContactsId, fusMedicalRecordsId, contactsRelationship, contactsTelephone, contactsName);
    }
}
